package org.news.web.redis;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 *  redis key常量
 */
public class RedisConstant {



//    爬虫key
    static {
        PythonKeys = new ArrayList<>(
            Arrays.asList(
                "Life",
                "Recreation",
                "Finance",
                "Science"
            )
        );
    }

    public static final List<String> PythonKeys;


    /**
     * 新闻key常量
     */
    public static final String NEWS_PRE_KEY = "NEWS";

    /**
     * 点赞key常量
     */
    public static final String LIKE_PRE_KEY = "LIKE";

    /**
     * 游览key常量
     */
    public static final String VIEW_PRE_KEY = "VIEW";

    /**
     * 收藏key常量
     */
    public static final String FAVO_PRE_KEY = "FAVO";

    /**
     * 评论key常量
     */
    public static final String COMM_PRE_KEY = "COMM";

    public static final String USER_KEY = "USER";
    public static final String CODE_KEY = "CODE";
    public static final String XIN_WEI = "ACTION";


    public static final String HOT_BANG = "hot_ranking";




//    行为状态key
    /**
     * 是否游览
     */
    public static final String IS_VIEW = "VIEW";

    /**
     * 是否点赞
     */
    public static final String IS_LIKE = "LIKE";

    /**
     * 是否收藏
     */
    public static final String IS_FAVO = "FAVO";

    /**
     * 是否评论
     */
    public static final String IS_COMM = "COMM";



}
